package com.hams.demo.system.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import com.hams.demo.system.entity.Department;

public interface IDepartmentService {
	
	public void saveOrUpdate(Department department);
	public void delete(Department department);
	public void delete(List<Long> ids);
	public Department findOne(Long id);
	public List<Department> findAll();
	
	public Page<Department> findAll(Specification<Department> spec, Pageable pageable);
	
	public Department findDepartment(String name);
	public boolean exist(Long id);

}
